<div class="body">
    <div class="col-md-8 col-sm-8">
        <p style="padding-left: 20px;font-weight: bold">总的拥有者情况： </p>
        <p style="padding-left: 20px;font-weight: bold">总销售额： </p>
    </div>
    <div class="col-md-4 col-sm-4">
        <div style="float: right">
            <button ng-if="canEdit" class="btn btn-info" style="line-height: 1;width: 115px;margin-right: 15px" ng-click="initProduct()">添加产品</button>
        </div>
    </div>

    <div class="table-body">
        <table class="datatable table table-hover dataTale">
            <thead>
            <tr>
                <th>#</th>
                <th>产品名称</th>
                <th>配置</th>
                <th>金额（元）</th>
                <th>拥有者及成绩</th>
                <th ng-if="canEdit">操作</th>
            </tr>
            </thead>
            <tbody ng-repeat="item in oppProductList" ng-dblclick="editProduct(item,false)" style="border-top: 1px solid #dddddd;">
            <tr>
                <td>{{$index+1}}</td>
                <td>{{item.productNew.name}}</td>
                <td>{{item.configure}}</td>
                <td>{{item.amount}}</td>
                <td>
                    <span ng-repeat="x in item.oppProductNewContactDTOList">
                        {{x.orgContactName}}：{{x.rate}}%{{$last?'。':'，'}}
                    </span>
                </td>
                <td ng-if="canEdit">
                    <button ng-click="deleteProduct(item)" class="btn btn-xs btn-danger">移除</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>